Xceed Grid for WinForms v4.3 Documentation
Validate(Object,Boolean,Object[]) Method


Xceed.Validation.v1.3 Assembly > Xceed.Validation Namespace > ValidationProvider Class > Validate Method : Validate(Object,Boolean,Object[]) Method
The component to validate.
true if validation includes hidden components. false will validate only visible components. Components are considered to be visible even if they are not currently within the client area of their container. Hidden components are components that are collapsed or whose Visible property is set to false.
An array containing types of components and/or specific component instances to be ignored, along with their children components. When a a null reference (Nothing in Visual Basic) is passed, validation will occur on all component types.
Validates the component and all of its child components, but excludes specified types of components.
Syntax
'Declaration
 
Public Overloads Function Validate( _

   ByVal component As Object, _

   ByVal validateHidden As Boolean, _

   ByVal ParamArray ignoredComponents() As Object _

) As Boolean
'Usage
 
Dim instance As ValidationProvider

Dim component As Object

Dim validateHidden As Boolean

Dim ignoredComponents() As Object

Dim value As Boolean

 

value = instance.Validate(component, validateHidden, ignoredComponents)
public bool Validate( 

   object component,

   bool validateHidden,

   params object[] ignoredComponents

)

Parameters

component
The component to validate.
validateHidden
true if validation includes hidden components. false will validate only visible components. Components are considered to be visible even if they are not currently within the client area of their container. Hidden components are components that are collapsed or whose Visible property is set to false.
ignoredComponents
An array containing types of components and/or specific component instances to be ignored, along with their children components. When a a null reference (Nothing in Visual Basic) is passed, validation will occur on all component types.

Return Value

Returns true if components are valid; false otherwise.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ValidationProvider Class
ValidationProvider Members
Overload List